package name;

/**
 * Capitalizes the first letter of a generated name and ensures all other letters are lower case.
 * 
 * @author Catastrophe
 */
public final class StandardNameBuilderMethod implements NameBuilderMethod
{
	public void buildName(String[] phoneticList)
	{
		for(int i = 0; i < phoneticList.length; ++i)
			if(i == 0)
				phoneticList[i] = phoneticList[i].substring(0, 1).toUpperCase() + phoneticList[i].substring(1).toLowerCase();
			else
				phoneticList[i] = phoneticList[i].toLowerCase();
	}
}